package com.my.chapter17;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

import static net.mindview.util.Countries.*;

public class practice1 {
    private static Random rnd = new Random(47);

    public static void main(String[] args) {
        List<String> l = new ArrayList<String>(names(8));
        Collections.sort(l);
        System.out.println("sorted: " + l);
        for(int i = 1; i < 5; i++) {
            Collections.shuffle(l, rnd);
            System.out.println("shuffled (" + i + "): " + l);
        }
    }
}
